package TestDemo3;

public class Animal {
    int age;
    String name;
    String sex;

    public Animal(int age, String name, String sex) {
        this.age = age;
        this.name = name;
        this.sex = sex;
    }
}
class Dog extends Animal{

    public Dog(int age, String name, String sex) {
        super(age, name, sex);
    }
}